<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<link type="text/css" rel="stylesheet" href="./css/manage/style.css">
	<script type="text/javascript" src="<%=basePath%>/script/jquery-1.6.2.min.js"></script>
	<style type="text/css">
	.red { color: red; text-align: left; }
	</style>
  </head>
  
  <body>
  	<s:form action="./cas/chaptertips_delete.action" id="chaptertips_delete" method="post">
    	<table width="100%" class="tab_comm">
    			<s:token/>
    			<s:hidden name="chapter.id" id="id"></s:hidden>
				<s:hidden name="chapter.parentid" id="parentid"></s:hidden>
				<tbody>
					<s:if test="#request.treeNodeid!=0">
						<tr>
							<td class="tr fb blue_s">父知识点:</td>
							<td>${parentname}</td>
						</tr>
					</s:if>
					<tr>
						<td class="tr fb blue_s">知识点名称:</td>
						<td>${chapter.name}</td>
					</tr>
					<tr>
						<td class="tr fb blue_s">描述:</td>
						<td>${chapter.description}</td>
					</tr>
					<tr>
						<td class="tr fb blue_s">状态:</td>
						<td>
							<s:if test="chapter.status==1">启用</s:if>
							<s:if test="chapter.status==0">停用</s:if>
						</td>
					</tr>
					<tr>
						<td colspan="2">
						<span class="btnC"><input type="button" value="编辑" class="btnC_text" onclick="editdata()"/></span>
						<span class="btnC"><input type="button" value="删除" class="btnC_text" onclick="deletedata();" /></span>
						</td>
					</tr>
				</tbody>
		</table>
	</s:form>
    
  </body>
	<script type="text/javascript">
		function deletedata(){
			document.chaptertips_delete.submit();
		}
		function editdata(){
			var id=jQuery("#id").val();
			alert(id);
			javascript:window.location.href='<%=basePath%>cas/chaptertips_edit.action?id='+id;
		}
	</script>
</html>